home *** CD-ROM | disk | FTP | other *** search
- Failinit - a really simple failsave init extension
-
- V1.20: Tries to start /sbin/sash, /bin/sash and /etc/sash, the Linux
- stand alone shell from dbell@pdact.pd.necisa.oz.au. I'm happy that I
- found this great shell on a file server. Note that sash is much elder
- than failinit but I only noted it's presence some days ago.
-
- THIS PACKAGE MAY BE CONSIDERED BETA, BECAUSE IT IS TESTED ON MY SYSTEM
- ONLY. However I use it for a year or so without trouble.
-
- While configuring Linux I several times screwed up /etc/inittab or
- /etc/rc.d/rc, such that no login showed up any more. The only way to
- get into the system was to reboot from the install floppy disk, which
- is not very desireable.
-
- For this purpose I designed failinit, which can be placed in /etc and
- can be softlinked to /etc/init, such that Linux boots this before
- /bin/init or /sbin/init. The only thing /etc/failinit does, is to
- spawn a shell if the commandline to init starts with 'fail' and to
- wait for this shell to finish if the first argument is not exactly
- 'fail'.
-
- I "enjoyed" having it while I was tracing down a nasty problem with
- ext2fs after a severe system crash (buffer head pointer is NULL), that
- crashed my system again just after checking the filesystems ...
-
- If you don't know how to enter "fail" on the command line:
-
- At boot time LILO enables you to enter something BEHIND the image to
- load, which will be passed to init. (I use LILO only. But I think that
- the other booters have similiar possiblilities I think.)
-
- To boot in single user mode looks like: boot: linux S
- And spawn a failshell, too, looks like: boot: linux fail S
- To wait until it's finished looks like: boot: linux fails S
- The first line is present without failinit, too.
-
- To install failinit, just unpack the archive and type
- make install
- Failinit then checks if it is installed properly. If not you will get
- a warning.
-
- I am not liable for any damage. Use at own risk. No warranty. This
- archive may be distributed according to the GNU GPL V2 or higher. The
- file COPYING is no part of this archive to make it much smaller.
-
- tino@augsburg.net
-